﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_BBS_GetItemAttachment]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_BBS_GetItemAttachment];
GO
CREATE PROCEDURE [dbo].[sproc_BBS_GetItemAttachment]
@itemid int
/*--------------------------------------
功能：得到该贴的附件
参数：
    @itemid        贴子id
---------------------------------------*/
AS
    SELECT * FROM UDS_BBS_Item_Attachment WHERE item_id=@itemid